package com.bookcycle.panda.webfront.controller;

/**
 * @author Mason
 * @date 2018/3/6
 */
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class BaseController {
    @Autowired
    protected HttpServletRequest request;


    @Autowired
    protected HttpServletResponse response;

    protected String redirectTo( String url ) {
        StringBuffer rto = new StringBuffer("redirect:");
        rto.append(url);
        return rto.toString();
    }
}